close all;clear;clc
t = 0:0.1:3;
f = fenduan(t);
plot(t,f,'r*','LineWidth',2)
hold on

t = 3: 0.1 :5;
f = fenduan(t);
plot(t,f,'g-','LineWidth',2)
t = 5:0.1:10;
f = fenduan(t);
plot(t,f,'b-.','LineWidth',2)
xlabel('t')
ylabel('f(t)')
title('一元分段函数的二维图形')
